package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * TbUserDuty entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_user_duty", catalog = "imcdbserver")
public class TbUserDuty implements java.io.Serializable {

	// Fields

	private TbUserDutyId id;

	// Constructors

	/** default constructor */
	public TbUserDuty() {
	}

	/** full constructor */
	public TbUserDuty(TbUserDutyId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "udId", column = @Column(name = "ud_id", nullable = false)),
			@AttributeOverride(name = "udName", column = @Column(name = "ud_name", length = 50)),
			@AttributeOverride(name = "udDescrible", column = @Column(name = "ud_describle", length = 200)),
			@AttributeOverride(name = "corpId", column = @Column(name = "corp_id")) })
	public TbUserDutyId getId() {
		return this.id;
	}

	public void setId(TbUserDutyId id) {
		this.id = id;
	}

}